package advanced.jvm;

public class demo01 {
    public static void main(String[] args) {

    }
}

class A {
    public static int width = 100;
    public static final int MAX = 199;//单独调用常量, 不会创建这个类的对象(常量在编译的时候就加入常量池中了)

    static {
        System.out.println("静态初始化类");
        width = 300;
    }

    public A() {
        System.out.println("创建A的对象");
    }
}

class A_Father extends Object {
    static {
        System.out.println("创建A的father");
    }

    public A_Father() {
    }
}